/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: DcmDspSvc10.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: Dcm
*
* Revision:
* --------------------------------------------------------------------------------
* v0.1: 
* --Yueting.Ben, 2024-03-14 
* --Initial release

**********************************************************************************/

/** HEADER FILES **/
#include "DcmDspSvc10Cfg.h"
#include "DcmDslCfg.h"


/** MACRO DEFINITION **/
#define DCM_DSP_P2_SERVER 50u  /* 50ms */
#define DCM_DSP_P2_START_SERVER 2000u  /* 2000 ms */

/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/
const DcmDspSessionCfgType DcmDspDefaultSession;
const DcmDspSessionCfgType DcmDspProgrammingSession;
const DcmDspSessionCfgType DcmDspExtendedSession;
const DcmDspSessionCfgType DcmDspSuppliertSession;
const DcmDspSessionCfgType* DcmDspSessionCfg[DCM_SESSION_MAX];

/** LOCAL DATA **/
const DcmDspSessionCfgType DcmDspDefaultSession = 
{
    DCM_DEFAULT_SESSION, /* sesLevel */
    DCM_DSP_P2_SERVER, /* sessionP2ServerMax */
    DCM_DSP_P2_START_SERVER, /* sessionP2StarServerMax */
};

const DcmDspSessionCfgType DcmDspProgrammingSession = 
{
    DCM_PROGRAMMING_SESSION, /* sesLevel */
    DCM_DSP_P2_SERVER, /* sessionP2ServerMax */
    DCM_DSP_P2_START_SERVER, /* sessionP2StarServerMax */
};

const DcmDspSessionCfgType DcmDspExtendedSession = 
{
    DCM_EXTENDED_DIAGNOSTIC_SESSION, /* sesLevel */
    DCM_DSP_P2_SERVER, /* sessionP2ServerMax */
    DCM_DSP_P2_START_SERVER, /* sessionP2StarServerMax */
};

const DcmDspSessionCfgType DcmDspSuppliertSession = 
{
    DCM_SUPPLIER_SESSION, /* sesLevel */
    DCM_DSP_P2_SERVER, /* sessionP2ServerMax */
    DCM_DSP_P2_START_SERVER, /* sessionP2StarServerMax */
};

const DcmDspSessionCfgType* DcmDspSessionCfg[DCM_SESSION_MAX] = 
{   
    (DcmDspSessionCfgType*)&DcmDspDefaultSession,
    (DcmDspSessionCfgType*)&DcmDspProgrammingSession,
    (DcmDspSessionCfgType*)&DcmDspExtendedSession,
    (DcmDspSessionCfgType*)&DcmDspSuppliertSession,
};


